import request from '@/utils/request'

// 查询客户预付款单列表
export function listCustomerSettlePreSheet(query) {
  return request({
    url: '/basicdatas/CustomerSettlePreSheet/list',
    method: 'get',
    params: query
  })
}

// 查询客户预付款单详细
export function getCustomerSettlePreSheet(id) {
  return request({
    url: '/basicdatas/CustomerSettlePreSheet/' + id,
    method: 'get'
  })
}

// 新增客户预付款单
export function addCustomerSettlePreSheet(data) {
  return request({
    url: '/basicdatas/CustomerSettlePreSheet',
    method: 'post',
    data: data
  })
}

// 修改客户预付款单
export function updateCustomerSettlePreSheet(data) {
  return request({
    url: '/basicdatas/CustomerSettlePreSheet',
    method: 'put',
    data: data
  })
}

// 删除客户预付款单
export function delCustomerSettlePreSheet(id) {
  return request({
    url: '/basicdatas/CustomerSettlePreSheet/' + id,
    method: 'delete'
  })
}
